package com.elm.service.impl;

import com.elm.dao.FoodDao;
import com.elm.entity.Food;
import com.elm.service.FoodService;

import java.util.List;

public class FoodServiceImpl implements FoodService {
    private FoodDao foodDao;
    public FoodServiceImpl() {
        foodDao = new FoodDao();
    }
    @Override
    public List<Food> getFoodsById(String businessId) {
        return foodDao.getFoodsByBusinessId(businessId);
    }
}
